package com.zhang.learn.javaassist.utill;

import cn.afterturn.easypoi.handler.inter.IExcelExportServer;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhanghaolian
 * @date 2021/7/22 0:36
 */
@Component
public class ExportLoadDataHandler implements IExcelExportServer {
    private List<Object> data;

    @Override
    public List<Object> selectListForExcelExport(Object obj, int page) {
        if (page > 1) {
            return null;
        }
        return data;
    }

    public void setData(List<Object> list) {
        this.data = list;
    }
}
